package kr.saeildamil.androidstudy.ch08;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch08Main extends Activity {
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);		
		setContentView(R.layout.ch08_main);
	}
	public void mOnClick (View v){
		switch(v.getId()){
		case R.id.ch08_btn01:
			startActivity(new Intent(this, HandleEvent.class));
			break;
		case R.id.ch08_touchlistener_btn01:
			startActivity(new Intent(this, HandleEvent02.class));
			break;
		case R.id.ch08_activity_btn01:
			startActivity(new Intent(this, HandleEvent03.class));
			break;
		case R.id.ch08_anonymoushdent_btn:
			startActivity(new Intent(this, AnonymousHandleEvent.class));
			break;
		case R.id.handlenumbtn:
			startActivity(new Intent(this, HandleOrder.class));
			break;
		case R.id.handleraccess_btn:
			startActivity(new Intent(this, HandlerAccess.class));
			break;
		case R.id.ch08_freeline_btn:
			startActivity(new Intent(this, FreeLine.class));
			break;
		case R.id.main_fruit2:
			startActivity(new Intent(this, Fruit2.class));
			break;
		case R.id.main_longclickbtn:
			startActivity(new Intent(this, LongClick.class));
			break;
		}
	}
}
